#include"process.h"

double target_file_size = 1024.0;
double speed = 1.0;

//下载场景
void DownLoad(double size, double speed)
{
    double current = 0.0;

    while(current <= size)
    {
        FlushProcess(size,current);
        if(current >= size) break;
        current+=speed;
        usleep(10000);
    }
}

int main()
{
    Process();
    DownLoad(target_file_size , speed);
    return 0;
}
